package com.bert.feign.fallBackFactory;

import com.bert.entity.TestDemoEntity;
import com.bert.feign.TestClient;
import org.springframework.stereotype.Component;

@Component
public class TestClientFallback implements TestClient {
    @Override
    public String path(String number) {
        return "default path 1";
    }

    @Override
    public String param(Integer a, Integer b) {
        return "default param 1";
    }

    @Override
    public TestDemoEntity post(TestDemoEntity entity) {
        return new TestDemoEntity(0, "default post");
    }

    @Override
    public String notFound() {
        return "not found 1";
    }
}
